package mhuu.view;

import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

import mhuu.constant.AppConfig;

public class MainWindow extends JFrame{
	{
		this.addWindowListener(new WindowAdapter(){ 
			@Override
			public void windowClosing(WindowEvent e) { 
				System.exit(1);
			} 
		});
	}
	public MainWindow(){ 
		this.setTitle(AppConfig.MainWindow_title);
		this.setSize(AppConfig.MainWindow_width, AppConfig.MainWindow_height); 	
		ButtonPanel buttonPanel=new ButtonPanel();
		HttpRequestPanel httpHeadPanel=new HttpRequestPanel();
		HttpResponsePanel httpResponsePanel=new HttpResponsePanel(); 
		mainPanel.add(httpHeadPanel,BorderLayout.WEST);
		mainPanel.add(httpResponsePanel,BorderLayout.CENTER); 
		mainPanel.add(buttonPanel,BorderLayout.NORTH);
		this.add(mainPanel); 
		this.setVisible(true);
	}
	public static MainPanel mainPanel=new MainPanel();
}
